package com.ingsing.tourism.service;

import com.ingsing.tourism.entity.User;

import java.util.Date;

/**
 * @Author houg
 * @create 2019/10/15 00:35
 */
public interface IUserService {
    //根据用户名登录
    User selectByUsername(String username);

    //邮箱登录
    User selectByEmail(String email);

    //手机号登录
    User selectByPhone(String phone);

    //用户注册
    int insertSelective(User user);

    //修改资料
    int updateUser(User user);

    //关闭账户
    int offAccount(Integer userId);

    //禁用账户
    int disableAccount(Integer userId);

    //异常账户
    int abnormalAccount(Integer userId);

    //设置登录时间
    int setLastLogin(User user);
}
